package cn.edu.hnnu.c.rentacar.beans;

import java.io.Serializable;
import java.util.Date;

public class RentRecord implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private int rentRecordId;
	private int imprest;
	//预付金额,与原表中字段不同;
	private int prepaidAmount;
	//应付金额,与原表中字段不同;
	private int shouldPayAmount;
	//实际支付金额,与原表中字段不同;
	private int actualAmount;
	private Date beginDate;
	private Date shouldReturnDate;
	private Date actualReturnDate;
	//出租单状态
	private int rentState;
	private int customerId;
	private int carId;
	private int userId;
	
	public RentRecord() {
		super();
	}

	public RentRecord(int rentRecordId, int imprest, int prepaidAmount,
			int shouldPayAmount, int actualAmount, Date beginDate,
			Date shouldReturnDate, Date actualReturnDate, int rentState,
			int customerId, int carId, int userId) {
		super();
		this.rentRecordId = rentRecordId;
		this.imprest = imprest;
		this.prepaidAmount = prepaidAmount;
		this.shouldPayAmount = shouldPayAmount;
		this.actualAmount = actualAmount;
		this.beginDate = beginDate;
		this.shouldReturnDate = shouldReturnDate;
		this.actualReturnDate = actualReturnDate;
		this.rentState = rentState;
		this.customerId = customerId;
		this.carId = carId;
		this.userId = userId;
	}

	public int getRentRecordId() {
		return rentRecordId;
	}

	public void setRentRecordId(int rentRecordId) {
		this.rentRecordId = rentRecordId;
	}

	public int getImprest() {
		return imprest;
	}

	public void setImprest(int imprest) {
		this.imprest = imprest;
	}

	public int getPrepaidAmount() {
		return prepaidAmount;
	}

	public void setPrepaidAmount(int prepaidAmount) {
		this.prepaidAmount = prepaidAmount;
	}

	public int getShouldPayAmount() {
		return shouldPayAmount;
	}

	public void setShouldPayAmount(int shouldPayAmount) {
		this.shouldPayAmount = shouldPayAmount;
	}

	public int getActualAmount() {
		return actualAmount;
	}

	public void setActualAmount(int actualAmount) {
		this.actualAmount = actualAmount;
	}

	public Date getBeginDate() {
		return beginDate;
	}

	public void setBeginDate(Date beginDate) {
		this.beginDate = beginDate;
	}

	public Date getShouldReturnDate() {
		return shouldReturnDate;
	}

	public void setShouldReturnDate(Date shouldReturnDate) {
		this.shouldReturnDate = shouldReturnDate;
	}

	public Date getActualReturnDate() {
		return actualReturnDate;
	}

	public void setActualReturnDate(Date actualReturnDate) {
		this.actualReturnDate = actualReturnDate;
	}

	public int getRentState() {
		return rentState;
	}

	public void setRentState(int rentState) {
		this.rentState = rentState;
	}

	public int getCustomerId() {
		return customerId;
	}

	public void setCustomerId(int customerId) {
		this.customerId = customerId;
	}

	public int getCarId() {
		return carId;
	}

	public void setCarId(int carId) {
		this.carId = carId;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	@Override
	public String toString() {
		return "RentTable [rentRecordId=" + rentRecordId + ", imprest=" + imprest
				+ ", prepaidAmount=" + prepaidAmount + ", shouldPayAmount="
				+ shouldPayAmount + ", actualAmount=" + actualAmount
				+ ", beginDate=" + beginDate + ", shouldReturnDate="
				+ shouldReturnDate + ", actualReturnDate=" + actualReturnDate
				+ ", rentState=" + rentState + ", customerId=" + customerId
				+ ", carId=" + carId + ", userId=" + userId + "]";
	}
	
}
